package template;

/**
 * @author zhangxi
 * @date 2021/10/8
 */
public abstract class AbstractDiscountCalculator implements DiscountCalculator{


    public void calculate() {
        commonCalculate();
        specificCalcuate();
    }

    private void commonCalculate(){
        System.out.println("通用计算方法");

    }

    protected  abstract void specificCalcuate();

}
